package com.aggron.params;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 部门参数实体
 * @author  by liuhuan on 2018/6/2.
 */
@Data
public class DeptParams {

    private Integer id;

    @NotNull(message = "部门名称不能为空")
    @Length(max=15,min=2,message = "部门名称的长度在2-15之间")
    private String name;

    private Integer parentId=0;

    @NotNull(message = "部门展示顺序不能为空")
    private Integer seq;

    @Length(max=150,message = "备注长度在150字之内")
    private String remark;
}
